//
//  PersonalViewCell.m
//  LiverClient
//
//  Created by dongshangtong on 16/5/3.
//  Copyright © 2016年 朱亚杰. All rights reserved.
//

#import "PersonalViewCell.h"

@interface PersonalViewCell()

@property (weak, nonatomic) IBOutlet UIImageView *arrowView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *arrowViewTrailing;


@end

@implementation PersonalViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.iconImage.layer.cornerRadius =20;
    self.iconImage.clipsToBounds =YES;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setShowArrow:(BOOL)showArrow {
    _showArrow = showArrow;
    if (showArrow) {
        _arrowView.hidden = NO;
        _arrowViewTrailing.constant = 12;
    } else {
        _arrowView.hidden = YES;
        _arrowViewTrailing.constant = -5;
    }
}



+(instancetype)personalViewCellWithTable:(UITableView *)tableView
{
    static NSString *cellID = @"PersonalViewCell";
    
    PersonalViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    
    if (!cell) {
        
        cell = [[PersonalViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
    }
    
    return cell;
    
}


-(void)refreshMender:(NSString *)strsuore menderData:(NSString *)datasoure
{
    
    self.themeLabel.text =strsuore;
    
    self.SubLable.text = datasoure;
    
    
    
    
    
}
@end
